<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    var str = '500.000000万元'
    str.slice(0,-2)
    console.log(str.slice(0,-2),str);


    let arr = ['2023-01','2023-02','2023-03','2023-04']
    let data = arr.map((item)=>{
      return item.slice(5,7)
    })
    console.log(data);


  </script>
</body>
</html>